package com.first.run.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.first.run.entity.SysRole;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface SysRoleMapper extends BaseMapper<SysRole> {
    /**
     * 通过用户Id 查询角色信息
     * @param userId
     * @return
     */
    List<SysRole> listRolesByUserId(Integer userId);
}
